package com.briup.product_my.controller;

import com.briup.product_my.domain.ManagerBatch;
import com.briup.product_my.domain.ManagerFenceHouse;
import com.briup.product_my.result.Result;
import com.briup.product_my.service.BatchService;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: xiongwenbin
 * @Date: 2024/8/22-08-22-下午2:03
 * @Description: com.briup.product_my.controller
 */
@RestController
@Api(tags = "检疫登记模块")
@RequestMapping("/batch")
public class BatchController {
    @Autowired
    private BatchService batchService;

    @GetMapping("/queryAllUnquarantined")
    @ApiOperation(value = "查询所有未检疫的批次信息", notes = "查询所有未检疫的批次信息")
    public Result queryAllUnquarantined() {
        return Result.success(batchService.queryAllUnquarantined());
    }
    @GetMapping("/queryAll")
    @ApiOperation(value = "查询所有批次信息", notes = "查询所有批次信息")
    public Result queryAll() {
        return Result.success(batchService.queryAll());
    }

}
